package artid.com.arttogoa.task;

/*******************************************************************************
 * Copyright (c) 2014 by Ohio Corporation all right reserved.
 * 2014-7-7 
 * 
 *******************************************************************************/

import android.content.Context;

import com.loopj.android.http.JsonHttpResponseHandler;

/**
 * <pre>
 * 功能说明: 
 * 日期:	2014-7-7
 * 开发者:	王耀龙
 * 
 * 历史记录
 *    修改内容：
 *    修改人员：
 *    修改日期： 2014-7-7
 * </pre>
 */
public class NearHttpResponseHandler extends JsonHttpResponseHandler {
	private Context context;
	private boolean isLogin = false;
	private String url;
	private NearHttpResponseHandler mNearHttpResponseHandler;

	public boolean isLogin() {
		return isLogin;
	}

	public String getUrl() {
		return url;
	}

	public void setLogin(boolean isLogin) {
		this.isLogin = isLogin;
	}

	public NearHttpResponseHandler(boolean isLogin) {
		this.isLogin = isLogin;
	}

	public NearHttpResponseHandler() {

	}

	public void setNearHttpResponseHandler(
			NearHttpResponseHandler mNearHttpResponseHandler) {
		this.mNearHttpResponseHandler = mNearHttpResponseHandler;
	}

	public Context getContext() {
		return context;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	// @Override
	// public void onSuccess(JSONObject arg0) {
	// // TODO Auto-generated method stub
	// Log.e("JSONObject arg0", "JSONObject arg0==" + arg0.toString());
	// }
	//
	// @Override
	// public void onFailure(Throwable arg0) {
	// // TODO Auto-generated method stub
	// super.onFailure(arg0);
	// System.out.println(arg0.getMessage());
	// Toast.makeText(context, "网络请求失败", 0).show();
	// }

	@Override
	public void onFinish() {
		// TODO Auto-generated method stub
		super.onFinish();
		System.out.println("onFinish()");
		// if(dia!=null&&dia.isShowing())
		// dia.dismiss();
	}
}
